require(['monitor'], function () {
    var $view = $('#batteryChargeMonitorClass');
    $('#monitor').monitor({
        canId: '28',
        callback: function (data) {
        	if(!data&&data.chargeStatus == 0){//充电状态
				$.messager.alert("提示", "该设备不在充电中!", "warning");
			} else{
				$view.setViewData(data, 'id');
			}
        },
        clearData: function () {
            $view.setViewData({}, 'id');
        }
    });
});